package com.ruoyi.dormitory.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宿舍对象 dormitory
 * 
 * @author ruoyi
 * @date 2023-04-26
 */
public class Dormitory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 宿舍编号 */
    @TableId(value = "dormitory_id", type = IdType.INPUT)
    private Integer dormitoryId;

    /** 宿舍类型(0 男寝,1 女寝) */
    @Excel(name = "宿舍类型(0 男寝,1 女寝)")
    private Long dormitoryType;

    /** 宿舍房间 */
    @Excel(name = "宿舍房间")
    private String dormitoryNumber;

    /** 容纳人数 */
    @Excel(name = "容纳人数")
    private Long galleryful;

    /**
     * 空闲床位
     */
    @Excel(name = "空闲床位")
    @TableField(exist = false)
    private Long freeBed;

    public Long getFreeBed() {
        return freeBed;
    }

    public void setFreeBed(Long freeBed) {
        this.freeBed = freeBed;
    }

    public Integer getDormitoryId() {
        return dormitoryId;
    }

    public void setDormitoryId(Integer dormitoryId) {
        this.dormitoryId = dormitoryId;
    }

    public String getDormitoryNumber() {
        return dormitoryNumber;
    }

    public void setDormitoryNumber(String dormitoryNumber) {
        this.dormitoryNumber = dormitoryNumber;
    }

    public Long getDormitoryType() {
        return dormitoryType;
    }

    public void setDormitoryType(Long dormitoryType) {
        this.dormitoryType = dormitoryType;
    }

    public void setGalleryful(Long galleryful) 
    {
        this.galleryful = galleryful;
    }

    public Long getGalleryful() 
    {
        return galleryful;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dormitoryId", getDormitoryId())
            .append("dormitoryType", getDormitoryType())
            .append("dormitoryNumber", getDormitoryNumber())
            .append("galleryful", getGalleryful())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
